package svc

import (
	"refister-kit/api/internal/config"
	"refister-kit/registerrpc/registerrpcclient"

	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config      config.Config
	RegisterRpc registerrpcclient.Registerrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:      c,
		RegisterRpc: registerrpcclient.NewRegisterrpc(zrpc.MustNewClient(c.RegisterRpc)),
	}
}
